rpms/kmid2/devel kmid2.spec,1.13,1.14

Kevin Kofler kkofler at fedoraproject.org
Fri May 28 23:22:22 UTC 2010


Author: kkofler

Update of /cvs/pkgs/rpms/kmid2/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv23618/devel

Modified Files:
	kmid2.spec 
Log Message:
- Fix file list
- Add -devel and -libs subpackages
- Package COPYING


Index: kmid2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kmid2/devel/kmid2.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- kmid2.spec	28 May 2010 22:58:33 -0000	1.13
+++ kmid2.spec	28 May 2010 23:22:21 -0000	1.14
@@ -24,11 +24,10 @@ BuildRequires:  desktop-file-utils
 %{?_kde4_version:Requires: kdelibs4%{?_isa} >= %{_kde4_version}}
 Requires:       oxygen-icon-theme
 Requires:       drumstick >= 0.3
+Requires:       %{name}-libs = %{version}-%{release}
 
 Obsoletes:      kmid < 2.0-1
-Provides:       kmid = 2.0-1
-
-Obsoletes:      kmid-devel < 2.0-1
+Provides:       kmid = %{version}-%{release}
 
 %description
 KMid2 is a MIDI/karaoke file player, with configurable midi mapper, real
@@ -38,6 +37,29 @@ color of the lyrics.
 It supports output through external synthesizers, AWE, FM and GUS cards.
 It also has a keyboard view to see the notes played by each instrument.
 
+%package libs
+Summary:        Runtime libraries for %{name}
+Group:          System Environment/Libraries
+License:        GPLv2+
+
+%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api}}
+%{?_kde4_version:Requires: kdelibs4%{?_isa} >= %{_kde4_version}}
+
+%description libs
+%{summary}.
+
+%package devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+License:        GPLv2+
+
+Requires:       %{name}-libs = %{version}-%{release}
+
+Obsoletes:      kmid-devel < 2.0-1
+Provides:       kmid-devel = %{version}-%{release}
+
+%description devel
+%{summary}.
 
 %prep
 %setup -q -n kmid-%{version}
@@ -58,7 +80,7 @@ make %{?_smp_mflags} -C %{_target_platfo
 rm -rf %{buildroot}
 make install DESTDIR=%{buildroot} -C %{_target_platform}
 desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/kmid2.desktop
-%find_lang %{name} --with-kde
+%find_lang kmid --with-kde
 
 
 %clean
@@ -79,19 +101,31 @@ fi
 %posttrans
 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
 
-%files -f %{name}.lang
+
+%files -f kmid.lang
 %defattr(-,root,root,-)
-%doc ChangeLog README TODO
-%{_kde4_bindir}/kmid2
-%{_kde4_appsdir}/kmid2/
-%{_kde4_datadir}/applications/kde4/kmid2.desktop
+%doc ChangeLog COPYING README TODO
+%{_kde4_bindir}/kmid
+%{_kde4_appsdir}/kmid/
+%{_kde4_datadir}/applications/kde4/kmid.desktop
 %{_kde4_datadir}/config.kcfg/*
 %{_kde4_datadir}/kde4/services/*
 %{_kde4_datadir}/kde4/servicetypes/*
 %{_kde4_iconsdir}/hicolor/*/apps/*
 %{_kde4_libdir}/kde4/*
 
+%files libs
+%defattr(-,root,root,-)
+%{_kde4_libdir}/libkmidbackend.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_kde4_libdir}/libkmidbackend.so
+%{_kde4_includedir}/kmid/
+
 
 %changelog
 * Fri May 28 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 2.3.0-1
@@ -101,6 +135,8 @@ gtk-update-icon-cache %{_datadir}/icons/
 - Drop obsolete drumstick-version patch
 - Examples now partly CC-BY-SA, partly GPLv2+ (instead of CC-BY)
 - Use _kde4_version macro
+- Add -devel and -libs subpackages
+- Package COPYING
 
 * Tue Feb 09 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 0.2.1-2
 - Requires: drumstick >= 0.2.99-0.3



More information about the scm-commits mailing list