summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2006-04-29 21:38:50 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit9e6d5456357c3c9df922bbe40872f4df6b538509 (patch)
tree0ad6f7ef38858adaf28b2e25438492fd4f2bfb12
parent53e9022568d43b339ffcf4c659d2a695cc4b775b (diff)
downloadmozldap-9e6d5456357c3c9df922bbe40872f4df6b538509.zip
mozldap-9e6d5456357c3c9df922bbe40872f4df6b538509.tar.gz
- mozldap.pc.in moved to proper place
Changed files: mozldap.spec -> 1.4
-rw-r--r--mozldap.spec27
1 files changed, 14 insertions, 13 deletions
diff --git a/mozldap.spec b/mozldap.spec
index 194972e..5503e71 100644
--- a/mozldap.spec
+++ b/mozldap.spec
@@ -89,19 +89,6 @@ export USE_64
cd mozilla/directory/c-sdk
%{__make} BUILDCLU=1 HAVE_SVRCORE=1 BUILD_OPT=1
-
-# Set up our package file
-install -d $RPM_BUILD_ROOT%{_libdir}/pkgconfig
-%{__cat} mozldap.pc.in | sed -e "s,%%libdir%%,%{_libdir},g" \
- -e "s,%%prefix%%,%{_prefix},g" \
- -e "s,%%exec_prefix%%,%{_prefix},g" \
- -e "s,%%includedir%%,%{_includedir}/mozldap,g" \
- -e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
- -e "s,%%NSS_VERSION%%,%{nss_version},g" \
- -e "s,%%SVRCORE_VERSION%%,%{svrcore_version},g" \
- -e "s,%%MOZLDAP_VERSION%%,%{version},g" > \
- $RPM_BUILD_ROOT%{_libdir}/pkgconfig/mozldap.pc
-
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_includedir}/mozldap
@@ -140,6 +127,20 @@ for file in libssldap50.so libprldap50.so libldap50.so; do
ln -s $file.%{major} $file
done
+# Set up our package file
+install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
+sed mozldap.pc.in -e "
+ s,%%libdir%%,%{_libdir},g
+ s,%%prefix%%,%{_prefix},g
+ s,%%exec_prefix%%,%{_prefix},g
+ s,%%includedir%%,%{_includedir}/mozldap,g
+ s,%%NSPR_VERSION%%,%{nspr_version},g
+ s,%%NSS_VERSION%%,%{nss_version},g
+ s,%%SVRCORE_VERSION%%,%{svrcore_version},g
+ s,%%MOZLDAP_VERSION%%,%{version},g
+" > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozldap.pc
+
+
%clean
rm -rf $RPM_BUILD_ROOT