diff options
author | Volker Kaiser <volker.kaiser@softwareschneiderei.de> | 2012-08-02 16:02:33 +0200 |
---|---|---|
committer | Volker Kaiser <volker.kaiser@softwareschneiderei.de> | 2012-08-02 16:02:33 +0200 |
commit | 34b782866a263238107d4d1db0b3970969eef3a2 (patch) | |
tree | 668c841dcf3e0ffebd82d2f7ed61faf5de4fc92b | |
parent | d5881265ee7c3995508aaa84275be498e30c5c8b (diff) | |
download | libuca-34b782866a263238107d4d1db0b3970969eef3a2.tar.gz libuca-34b782866a263238107d4d1db0b3970969eef3a2.tar.bz2 libuca-34b782866a263238107d4d1db0b3970969eef3a2.tar.xz libuca-34b782866a263238107d4d1db0b3970969eef3a2.zip |
added custom spec file
-rw-r--r-- | libuca.spec.in | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/libuca.spec.in b/libuca.spec.in new file mode 100644 index 0000000..80f4bf4 --- /dev/null +++ b/libuca.spec.in @@ -0,0 +1,74 @@ +# -*- rpm-spec -*- +Buildroot: @UCA_BUILD_DIR@/_CPack_Packages/Linux/RPM/@CPACK_PACKAGE_FILE_NAME@ +Summary: Abstract interface for different camera classes and frame grabber devices +Name: libuca +Version: 0.6.0 +Release: 1 +License: unknown +Group: unknown +Vendor: Karlsruhe Institute of Technology/IPE + + + + +#p define prefix /usr/local +%define _rpmdir @UCA_BUILD_DIR@/_CPack_Packages/Linux/RPM +%define _rpmfilename @CPACK_PACKAGE_FILE_NAME@.rpm +%define _unpackaged_files_terminate_build 0 +%define _topdir @UCA_BUILD_DIR@/_CPack_Packages/Linux/RPM + + + +%description +DESCRIPTION +=========== + +This is an installer created using CPack (http://www.cmake.org). No additional installation instructions provided. + + + +# This is a shortcutted spec file generated by CMake RPM generator +# we skip _install step because CPack does that for us. +# We do only save CPack installed tree in _prepr +# and then restore it in build. +%prep +mv $RPM_BUILD_ROOT @UCA_BUILD_DIR@/_CPack_Packages/Linux/RPM/tmpBBroot + +#p build + +%install +if [ -e $RPM_BUILD_ROOT ]; +then + rm -Rf $RPM_BUILD_ROOT +fi +mv "@UCA_BUILD_DIR@/_CPack_Packages/Linux/RPM/tmpBBroot" $RPM_BUILD_ROOT + +%clean + +%post + + +%postun + + +%pre + + +%preun + + +%files +%defattr(-,root,root,-) +@CMAKE_INSTALL_PREFIX@/include/uca/uca-pco-camera.h +@CMAKE_INSTALL_PREFIX@/include/uca/uca-mock-camera.h +@CMAKE_INSTALL_PREFIX@/include/uca/uca-pylon-camera.h +@CMAKE_INSTALL_PREFIX@/include/uca/uca-camera.h +@CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@/libuca.so +@CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@/libuca.so.6 +@CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@/libuca.so.0.6 +@CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@/pkgconfig/uca.pc + + +%changelog +* Tue Aug 2 2012 Volker Kaiser <volker.kaiser@softwareschneiderei.de> +First package version |