From 70e4cdd60c8427c49d02b158418727e87939a323 Mon Sep 17 00:00:00 2001 From: Jinkun Jang Date: Sat, 16 Mar 2013 01:12:50 +0900 Subject: [PATCH] merge with master --- CMakeLists.txt | 4 ++-- packaging/xdgmime.spec | 44 +++++++++++++++++++------------------------- 2 files changed, 21 insertions(+), 27 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5090db6..10c65d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,10 +74,10 @@ SET_TARGET_PROPERTIES(xdgmime PROPERTIES VERSION ${VERSION}) CONFIGURE_FILE(xdgmime.pc.in xdgmime.pc @ONLY) ### Install ### -INSTALL(TARGETS xdgmime DESTINATION lib COMPONENT RuntimeLibraries) +INSTALL(TARGETS xdgmime DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/xdgmime/src/xdgmime.h DESTINATION include) -INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/xdgmime.pc DESTINATION lib/pkgconfig) +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/xdgmime.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) # test add_subdirectory(test) diff --git a/packaging/xdgmime.spec b/packaging/xdgmime.spec index 1b74dab..9b45d4d 100644 --- a/packaging/xdgmime.spec +++ b/packaging/xdgmime.spec @@ -1,51 +1,45 @@ -Name: xdgmime -Summary: Pkg xdgmime -Version: 0.0.12 -Release: 2 -Group: TO_BE/FILLED_IN -License: LGPLv2, AFLv2 -Source0: xdgmime-%{version}.tar.gz -Requires(post): /sbin/ldconfig, /bin/chown, /bin/chmod -Requires(postun): /sbin/ldconfig +Name: xdgmime +Version: 0.0.12 +Release: 2 +License: LGPLv2, AFLv2 +Summary: Pkg xdgmime +Group: TO_BE/FILLED_IN +Source0: xdgmime-%{version}.tar.gz BuildRequires: cmake %description -Package xdgmime +Package xdgmime %package devel -Summary: Pkg xdgmime (devel) -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} +Summary: Pkg xdgmime (devel) +Group: Development/Libraries +Requires: %{name} = %{version} %description devel Package xdgmime (devel) %prep -%setup -q -n %{name}-%{version} +%setup -q %build -cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} +%cmake . -make %{?jobs:-j%jobs} +make %{?_smp_mflags} %install -rm -rf %{buildroot} %make_install -%post -chown root:root /usr/lib/libxdgmime.so.1.1.0 -chmod 644 /usr/lib/libxdgmime.so.1.1.0 -/sbin/ldconfig +%post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) -/usr/lib/libxdgmime.so.* +%{_libdir}/libxdgmime.so.* %manifest xdgmime.manifest %files devel %defattr(-,root,root,-) -/usr/include/xdgmime.h -/usr/lib/libxdgmime.so -/usr/lib/pkgconfig/xdgmime.pc +%{_includedir}/xdgmime.h +%{_libdir}/libxdgmime.so +%{_libdir}/pkgconfig/xdgmime.pc -- 2.7.4