autospec/templates/gnome

74 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2011-04-26 21:39:44 +02:00
%define gnomever n1.n2.n3
%define gnomemajver %(echo %gnomever | cut -d. -f 1-2)
%define gnomegroup ...
%define pkgname ...
Name: %{pkgname}
Version: @pck_version@
Release: @spec_first_release@@DISTRO_rpm@
Summary: ...
Group: ...
Vendor: @VENDOR@
Distribution: @DISTRO@
Packager: @packager_fullname@ <@packager_email@>
URL: https://www.gnome.org
Source: https://download.gnome.org/pub/GNOME/%{gnomegroup}/%{gnomemajver}/%{gnomever}/sources/%{pkgname}-%{version}.tar.bz2
2011-04-26 21:39:44 +02:00
License: GPL
## AUTOBUILDREQ-BEGIN
## note: run 'autospec -u -a6 @pck_name@' to get the list of build requirements.
## AUTOBUILDREQ-END
BuildRequires: gtk-doc
%description
...
@if:library_apidocs
%package apidocs
Summary: %{pkgname} API documentation
Group: Documentation
Requires: gtk-doc
%description apidocs
%{pkgname} API documentation.
@fi:library_apidocs
@if:debug_package
%debug_package
@fi:debug_package
2011-04-26 21:39:44 +02:00
%prep
%setup -q -n %{pkgname}-%{version}
%build
@if:library_apidocs
@configure@ --enable-gtk-doc
@else:library_apidocs
@configure@
@fi:library_apidocs
@make@
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@makeinstall@
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
@standard_docs@
## note: eventually add the remaining documents (if any)
# @standard_docs_devel@
2011-04-26 21:39:44 +02:00
@if:library_apidocs
%files apidocs
%defattr(-,root,root)
## note: this list is just an example; modify as required
# %{_datadir}/gtk-doc/html/%{name}
@fi:library_apidocs
%changelog
* @spec_changelog_date@ @packager_fullname@ <@packager_email@> @pck_version@-@spec_first_release@@DISTRO_rpm@
- @spec_changelog_comment@