Macro-ize spec files.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Sun, 16 Sep 2007 04:25:54 +0000 (04:25 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Sun, 16 Sep 2007 04:25:54 +0000 (04:25 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@386 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling.spec.in

index 2f1a5a7..f9384e3 100644 (file)
@@ -9,7 +9,7 @@ URL:            http://www.opensaml.org/
 Source0:       %{name}-%{version}.tar.gz
 BuildRoot:     %{_tmppath}/%{name}-%{version}-root
 BuildRequires: xerces%{?xercesver}-c-devel >= 2.6.1
-BuildRequires: xml-security-c-devel >= 1.3.1
+BuildRequires: xml-security-c-devel >= 1.4.0
 BuildRequires: openssl-devel, cxxtest
 %{?_with_log4cpp:BuildRequires:        log4cpp-devel >= 0.3.5}
 %{!?_with_log4cpp:BuildRequires: log4shib-devel}
@@ -51,25 +51,27 @@ XMLTooling Library API documentation generated by doxygen.
 
 %build
 %configure %{?xmltooling_options}
-make
+%{__make}
 
 %install
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
-rm -rf _docs
-make install DESTDIR=$RPM_BUILD_ROOT
-mv $RPM_BUILD_ROOT/usr/doc/xmltooling _docs
+[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
+%{__rm} -rf _docs
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__mv} $RPM_BUILD_ROOT/usr/doc/xmltooling _docs
 
 %check || :
-make check
+%{__make} check
 
 %clean
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
+%ifnos solaris2.8 solaris2.9 solaris2.10 
+%post -p /sbin/ldconfig
+%endif
 
-%postun
-/sbin/ldconfig
+%ifnos solaris2.8 solaris2.9 solaris2.10 
+%postun -p /sbin/ldconfig
+%endif
 
 %files
 %defattr(-,root,root,-)