From 084d930dcff6878fc1883c404f81e86a3deba4a1 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 18 Jul 2007 04:55:13 +0000 Subject: [PATCH] - install .pc file under %{_datadir}/pkgconfig and include it in a new devel subpackage --- m17n-db.spec | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/m17n-db.spec b/m17n-db.spec index 2fc1c58..d68a090 100644 --- a/m17n-db.spec +++ b/m17n-db.spec @@ -33,6 +33,16 @@ Group: System Environment/Libraries m17n-db datafiles not needed for using the input maps. +%package devel +Summary: Development files for m17n-db +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +m17n-db development files + + %package common-cjk Summary: m17n-db common files for CJK input Group: System Environment/Libraries @@ -405,7 +415,8 @@ rm $RPM_BUILD_ROOT%{_datadir}/m17n/{bn-unijoy.mim,icons/bn-unijoy.png} rm $RPM_BUILD_ROOT%{_datadir}/m17n/si-wijesekera.mim # drop pkgconfig file for now -rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/m17n-db.pc +mkdir -p $RPM_BUILD_ROOT%{_datadir}/pkgconfig/ +mv $RPM_BUILD_ROOT{%{_libdir},%{_datadir}}/pkgconfig/m17n-db.pc # For installing the translation files %find_lang %name @@ -435,6 +446,10 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/m17n/*.tab %{_datadir}/m17n/LOCALE.* +%files devel +%defattr(-,root,root) +%{_datadir}/pkgconfig/m17n-db.pc + %files common-cjk %defattr(-,root,root) %dir %{_datadir}/m17n @@ -735,6 +750,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Jul 18 2007 Jens Petersen +- install .pc file under %{_datadir}/pkgconfig + and include it in a new devel subpackage + * Mon Jun 18 2007 Jens Petersen - 1.3.4-10 - name Uyghur subpackage consistently