Accepting request 714024 from multimedia:libs
- Switch to service file for generating the package - Use conditions to enable the multibuild tests in other loop while also generating the docs - Make sure the tests are actually executed - Split API documentation from devel package, and convert it to multibuild - API documentation is significantly larger than library and headers - API documentation is noarch - Significantly reduced dependency chain for the library package - Use graphviz-gd instead of graphviz-gnome for API docs - Cleanup specfile OBS-URL: https://build.opensuse.org/request/show/714024 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/taglib?expand=0&rev=54
This commit is contained in:
commit
6eba117557
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>tests</package>
|
||||||
|
</multibuild>
|
16
_service
Normal file
16
_service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="disabled">
|
||||||
|
<param name="version">1.11.1</param>
|
||||||
|
<param name="versionformat">1.11.1+git%cd.%h</param>
|
||||||
|
<param name="url">https://github.com/taglib/taglib.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="exclude">.git</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
<param name="filename">taglib</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="disabled">
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="disabled"/>
|
||||||
|
</services>
|
3
taglib-1.11.1+git20190531.ba7adc2b.tar.xz
Normal file
3
taglib-1.11.1+git20190531.ba7adc2b.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1f5bd0a3525a50d22638d019f85130490a26a67e4ec4caf57d1774cb5192f69a
|
||||||
|
size 902668
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5ca08920a9a7e8ef5fc1bbb235aecea37ba63cd2025695b08cd7d1d719ec0633
|
|
||||||
size 1300498
|
|
@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 8 09:06:19 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Switch to service file for generating the package
|
||||||
|
- Use conditions to enable the multibuild tests in other loop while
|
||||||
|
also generating the docs
|
||||||
|
- Make sure the tests are actually executed
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 4 18:04:10 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- Split API documentation from devel package, and convert it to multibuild
|
||||||
|
- API documentation is significantly larger than library and headers
|
||||||
|
- API documentation is noarch
|
||||||
|
- Significantly reduced dependency chain for the library package
|
||||||
|
- Use graphviz-gd instead of graphviz-gnome for API docs
|
||||||
|
- Cleanup specfile
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jun 2 12:06:18 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
Sun Jun 2 12:06:18 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
105
taglib.spec
105
taglib.spec
@ -16,33 +16,44 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define rev ba7adc2bc261ed634c2a964185bcffb9365ad2f4
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%global sname taglib
|
||||||
Name: taglib
|
%if "%{flavor}" != ""
|
||||||
Version: 1.11.2~git20190601
|
%global psuffix -%{flavor}
|
||||||
|
# build also examples with tests
|
||||||
|
%bcond_without tests
|
||||||
|
%else
|
||||||
|
%global psuffix %{nil}
|
||||||
|
%bcond_with tests
|
||||||
|
%endif
|
||||||
|
Name: taglib%{psuffix}
|
||||||
|
Version: 1.11.1+git20190531.ba7adc2b
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Audio Meta-Data Library
|
Summary: Audio Meta-Data Library
|
||||||
License: LGPL-2.1-or-later AND MPL-1.1
|
License: LGPL-2.1-or-later AND MPL-1.1
|
||||||
Group: Productivity/Multimedia/Other
|
Group: Productivity/Multimedia/Other
|
||||||
URL: http://taglib.github.io/
|
URL: http://taglib.github.io/
|
||||||
Source0: https://github.com/taglib/taglib/archive/%{rev}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: %{sname}-%{version}.tar.xz
|
||||||
#Source0: http://taglib.github.io/releases/%%{name}-%%{version}.tar.gz
|
Source1: %{sname}.desktop
|
||||||
Source1: %{name}.desktop
|
|
||||||
Source100: baselibs.conf
|
Source100: baselibs.conf
|
||||||
Patch0: taglib-versionbump.patch
|
Patch0: taglib-versionbump.patch
|
||||||
BuildRequires: cmake >= 2.8
|
BuildRequires: cmake >= 2.8
|
||||||
BuildRequires: doxygen
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: graphviz-gnome
|
|
||||||
BuildRequires: libcppunit-devel
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: update-desktop-files
|
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
# NOTE: The tagreader and writer executables give different results when built with
|
# NOTE: The tagreader and writer executables give different results when built with
|
||||||
# an earlier taglib-1.8-ds-rusxmms patch. See bnc#814814
|
# an earlier taglib-1.8-ds-rusxmms patch. See bnc#814814
|
||||||
Requires: libtag1 = %{version}-%{release}
|
Requires: libtag1 = %{version}-%{release}
|
||||||
Requires: libtag_c0 = %{version}-%{release}
|
Requires: libtag_c0 = %{version}-%{release}
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: doxygen
|
||||||
|
BuildRequires: ghostscript-fonts-std
|
||||||
|
BuildRequires: graphviz-gd
|
||||||
|
BuildRequires: libcppunit-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
TagLib is a library for reading and editing the meta-data of several popular
|
TagLib is a library for reading and editing the meta-data of several popular
|
||||||
@ -91,68 +102,88 @@ Obsoletes: taglib-devel <= 1.6.3
|
|||||||
%description -n libtag-devel
|
%description -n libtag-devel
|
||||||
This package contains development files for taglib.
|
This package contains development files for taglib.
|
||||||
|
|
||||||
|
%package -n libtag-doc
|
||||||
|
Summary: API documentation for taglib
|
||||||
|
License: LGPL-2.1-or-later
|
||||||
|
Group: Documentation/HTML
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description -n libtag-doc
|
||||||
|
This package contains the taglib API Documentation in HTML format.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{rev}
|
%setup -q -n %{sname}-%{version}
|
||||||
%patch0 -p0
|
%patch0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# The testing needs static libs too
|
||||||
%cmake \
|
%cmake \
|
||||||
-DBUILD_TESTS:BOOL=ON \
|
|
||||||
-DWITH_ASF:BOOL=ON \
|
-DWITH_ASF:BOOL=ON \
|
||||||
-DWITH_MP4:BOOL=ON \
|
-DWITH_MP4:BOOL=ON \
|
||||||
-DBUILD_EXAMPLES:BOOL=ON
|
%if %{with tests}
|
||||||
make %{?_smp_mflags} all docs
|
-DBUILD_TESTS:BOOL=ON \
|
||||||
|
-DBUILD_EXAMPLES:BOOL=ON \
|
||||||
|
-DBUILD_STATIC_LIBS:BOOL=ON \
|
||||||
|
-DBUILD_SHARED_LIBS:BOOL=OFF
|
||||||
|
%else
|
||||||
|
-DBUILD_TESTS:BOOL=OFF \
|
||||||
|
-DBUILD_EXAMPLES:BOOL=OFF
|
||||||
|
%endif
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
|
%cmake_build docs
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%if %{with tests}
|
||||||
|
|
||||||
# install susehelp file
|
# install susehelp file
|
||||||
mkdir -p %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
|
mkdir -p %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
|
||||||
install -pm 0644 %{SOURCE1} %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
|
install -pm 0644 %{SOURCE1} %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
|
||||||
|
|
||||||
%suse_update_desktop_file %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/%{name}.desktop
|
%suse_update_desktop_file %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/%{sname}.desktop
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
mkdir -p %{buildroot}%{_defaultdocdir}/libtag-devel
|
mkdir -p %{buildroot}%{_defaultdocdir}/libtag-doc
|
||||||
rm -f examples/CMake*
|
# Copy manually, otherwise fdupes does not work
|
||||||
cp -a AUTHORS NEWS build/doc/html/ examples/ %{buildroot}%{_defaultdocdir}/libtag-devel/
|
cp -a build/doc/html/ %{buildroot}%{_defaultdocdir}/libtag-doc/
|
||||||
|
|
||||||
# Add built examples to taglib package.
|
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
|
||||||
for i in `find build/examples -maxdepth 1 ! -type d -executable`; do cp -v ${i} %{buildroot}%{_bindir}/; done
|
|
||||||
|
|
||||||
|
%else
|
||||||
|
%cmake_install
|
||||||
|
%endif
|
||||||
%fdupes %{buildroot}
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
%post
|
%check
|
||||||
%desktop_database_post
|
%if %{with tests}
|
||||||
|
%ctest
|
||||||
%postun
|
%endif
|
||||||
%desktop_database_postun
|
|
||||||
|
|
||||||
|
%if !%{with tests}
|
||||||
%post -n libtag1 -p /sbin/ldconfig
|
%post -n libtag1 -p /sbin/ldconfig
|
||||||
%postun -n libtag1 -p /sbin/ldconfig
|
%postun -n libtag1 -p /sbin/ldconfig
|
||||||
%post -n libtag_c0 -p /sbin/ldconfig
|
%post -n libtag_c0 -p /sbin/ldconfig
|
||||||
%postun -n libtag_c0 -p /sbin/ldconfig
|
%postun -n libtag_c0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libtag1
|
%files -n libtag1
|
||||||
|
%license COPYING.LGPL COPYING.MPL
|
||||||
%{_libdir}/libtag.so.1
|
%{_libdir}/libtag.so.1
|
||||||
%{_libdir}/libtag.so.1.*
|
%{_libdir}/libtag.so.1.*
|
||||||
|
|
||||||
%files -n libtag_c0
|
%files -n libtag_c0
|
||||||
|
%license COPYING.LGPL COPYING.MPL
|
||||||
%{_libdir}/libtag_c.so.0
|
%{_libdir}/libtag_c.so.0
|
||||||
%{_libdir}/libtag_c.so.0.*
|
%{_libdir}/libtag_c.so.0.*
|
||||||
|
|
||||||
%files -n libtag-devel
|
%files -n libtag-devel
|
||||||
%doc %{_defaultdocdir}/libtag-devel
|
|
||||||
%{_bindir}/taglib-config
|
%{_bindir}/taglib-config
|
||||||
%{_includedir}/taglib/
|
%{_includedir}/taglib/
|
||||||
%{_libdir}/libtag*.so
|
%{_libdir}/libtag*.so
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
%else
|
||||||
|
%files -n libtag-doc
|
||||||
|
%doc AUTHORS NEWS examples
|
||||||
|
%{_docdir}/libtag-doc/html
|
||||||
%{_datadir}/susehelp/
|
%{_datadir}/susehelp/
|
||||||
|
%endif
|
||||||
%files
|
|
||||||
%license COPYING.LGPL COPYING.MPL
|
|
||||||
%{_bindir}/*
|
|
||||||
%exclude %{_bindir}/taglib-config
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user