commit
8a01447b92
BIN
libgta-1.0.7.tar.xz
Normal file
BIN
libgta-1.0.7.tar.xz
Normal file
Binary file not shown.
67
libgta.spec
Normal file
67
libgta.spec
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user