68 lines
1.5 KiB
RPMSpec
68 lines
1.5 KiB
RPMSpec
Name: libgta
|
|
Version: 1.0.7
|
|
Release: 9
|
|
Summary: A library that reads and writes GTA files
|
|
License: LGPLv2+
|
|
URL: https://marlam.de/gta/
|
|
Source0: http://download.savannah.nongnu.org/releases/gta/%{name}-%{version}.tar.xz
|
|
BuildRequires: bzip2-devel doxygen gcc xz-devel zlib-devel
|
|
|
|
%description
|
|
Libgta,a library that reads and writes GTA files,with interfaces in C and C++.
|
|
|
|
%package devel
|
|
Summary: Development documnets for %{name}
|
|
Requires: %{name} = %{version}-%{release} pkgconfig
|
|
|
|
%description devel
|
|
The package provides libraries and header files for applications which developed with %{name}.
|
|
|
|
%package help
|
|
Summary: Help documnets for %{name}
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
%description help
|
|
The package provides help documents for %{name}.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
sed -i 's/-m 644/-pm 644/' configure
|
|
|
|
%build
|
|
%configure --disable-static
|
|
%make_build V=1
|
|
|
|
%install
|
|
%make_install
|
|
rm -rf %{buildroot}%{_docdir}
|
|
|
|
%check
|
|
make check V=1
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%doc COPYING AUTHORS
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
%files devel
|
|
%{_datadir}/%{name}/cmake/FindGTA.cmake
|
|
%{_libdir}/pkgconfig/gta.pc
|
|
%{_libdir}/%{name}.so
|
|
%{_includedir}/gta
|
|
|
|
%files help
|
|
%doc README
|
|
%doc doc/example*
|
|
%doc doc/reference
|
|
|
|
%changelog
|
|
* Fri Mar 6 2020 zhouyihang<zhouyihang1@huawei.com> - 1.0.7-9
|
|
- Pakcage init
|