Accepting request 817527 from home:plater
- Create pkgconfig file. OBS-URL: https://build.opensuse.org/request/show/817527 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lame?expand=0&rev=10
This commit is contained in:
parent
f1a3821897
commit
1145aa8dab
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 28 13:58:25 UTC 2020 - Dave Plater <davejplater@gmail.com>
|
||||
|
||||
- Create pkgconfig file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 21 13:00:57 UTC 2017 - idonmez@suse.com
|
||||
|
||||
|
27
lame.spec
27
lame.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package lame
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@ -13,7 +13,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@ -22,9 +22,9 @@ Name: lame
|
||||
Version: 3.100
|
||||
Release: 0
|
||||
Summary: The LAME MP3 encoder
|
||||
License: LGPL-2.0+
|
||||
License: LGPL-2.0-or-later
|
||||
Group: Productivity/Multimedia/Sound/Editors and Convertors
|
||||
Url: http://lame.sourceforge.net/
|
||||
URL: http://lame.sourceforge.net/
|
||||
Source: http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz
|
||||
Source99: lame-rpmlintrc
|
||||
Source1000: baselibs.conf
|
||||
@ -114,6 +114,22 @@ make test
|
||||
make install pkgdocdir=%{_defaultdocdir}/%{name}/ DESTDIR=%{buildroot}
|
||||
rm -f %{buildroot}%{_libdir}/libmp3lame.la
|
||||
|
||||
#make package config file
|
||||
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
||||
echo "prefix=/usr" > %{buildroot}%{_libdir}/pkgconfig/lame.pc
|
||||
echo "libdir=/usr/lib64" >> %{buildroot}%{_libdir}/pkgconfig/lame.pc
|
||||
echo "includedir=/usr/include/lame" >> %{buildroot}%{_libdir}/pkgconfig/lame.pc
|
||||
echo "" >> %{buildroot}%{_libdir}/pkgconfig/lame.pc
|
||||
echo "Name: mp3lame" >> %{buildroot}%{_libdir}/pkgconfig/lame.pc
|
||||
echo "Description: encoder that converts audio to the MP3 file format." >> %{buildroot}%{_libdir}/pkgconfig/lame.pc
|
||||
echo "Requires: " >> %{buildroot}%{_libdir}/pkgconfig/lame.pc
|
||||
echo "Version: 3.100" >> %{buildroot}%{_libdir}/pkgconfig/lame.pc
|
||||
echo "Libs: -L${libdir} -lmp3lame " >> %{buildroot}%{_libdir}/pkgconfig/lame.pc
|
||||
echo "Cflags: -I${includedir} " >> %{buildroot}%{_libdir}/pkgconfig/lame.pc
|
||||
pushd %{buildroot}%{_libdir}/pkgconfig/
|
||||
ln -s lame.pc libmp3lame.pc
|
||||
popd
|
||||
|
||||
for f in ChangeLog README TODO USAGE; do
|
||||
install -m0644 "$f" "%{buildroot}%{_defaultdocdir}/%{name}/"
|
||||
done
|
||||
@ -133,7 +149,7 @@ done
|
||||
|
||||
%files -n libmp3lame%{sover}
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc COPYING LICENSE
|
||||
%license COPYING LICENSE
|
||||
%{_libdir}/libmp3lame.so.%{sover}
|
||||
%{_libdir}/libmp3lame.so.%{sover}.*
|
||||
|
||||
@ -142,6 +158,7 @@ done
|
||||
%doc API HACKING STYLEGUIDE
|
||||
%{_includedir}/lame/
|
||||
%{_libdir}/libmp3lame.so
|
||||
%{_libdir}/pkgconfig/*pc
|
||||
|
||||
%files -n lame-mp3rtp
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
x
Reference in New Issue
Block a user