schander
1st March 2012, 01:37 PM
Hi,
Can anyone help me write a spec file for installing shared libraries?
What I'm not sure about is what to include in the %files section, as it will need the headers aswell as the shared libs etc
I have created a package for debian and the structure is:
/usr/lib/libusb_pico-1.0.la
/usr/lib/libps6000.la
/usr/lib/libps6000.so.1.0.0
/usr/lib/libusb_pico-1.0.so.1.0.0
/usr/lib/libusb_pico-1.0.a
/usr/lib/pkgconfig/libusb_pico-1.0.pc
/usr/share/doc/ps6000linux/changelog.Debian.gz
/usr/share/doc/ps6000linux/copyright
/usr/share/doc/ps6000linux/README.Debian
/usr/include/libusb_pico-1.0/libusb.h
/usr/include/libps6000-1.3/PicoStatus.h
/usr/include/libps6000-1.3/ps6000Api.h
/DEBIAN/control
/DEBIAN/postrm
/DEBIAN/shlibs
/DEBIAN/md5sums
/DEBIAN/postinst
How do I replicate this? Should I just put the everything listed above under /usr in the %files section (excluding the debian specific stuff)?
Thanks
Satpal
Can anyone help me write a spec file for installing shared libraries?
What I'm not sure about is what to include in the %files section, as it will need the headers aswell as the shared libs etc
I have created a package for debian and the structure is:
/usr/lib/libusb_pico-1.0.la
/usr/lib/libps6000.la
/usr/lib/libps6000.so.1.0.0
/usr/lib/libusb_pico-1.0.so.1.0.0
/usr/lib/libusb_pico-1.0.a
/usr/lib/pkgconfig/libusb_pico-1.0.pc
/usr/share/doc/ps6000linux/changelog.Debian.gz
/usr/share/doc/ps6000linux/copyright
/usr/share/doc/ps6000linux/README.Debian
/usr/include/libusb_pico-1.0/libusb.h
/usr/include/libps6000-1.3/PicoStatus.h
/usr/include/libps6000-1.3/ps6000Api.h
/DEBIAN/control
/DEBIAN/postrm
/DEBIAN/shlibs
/DEBIAN/md5sums
/DEBIAN/postinst
How do I replicate this? Should I just put the everything listed above under /usr in the %files section (excluding the debian specific stuff)?
Thanks
Satpal