package init

This commit is contained in:
sherlock2010 2020-03-07 16:21:10 +08:00
parent 3426e9f825
commit 8c007b3a19
2 changed files with 67 additions and 0 deletions

BIN
libgta-1.0.7.tar.xz Normal file

Binary file not shown.

67
libgta.spec Normal file
View File

@ -0,0 +1,67 @@
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