Template to bootstrap configure/automake projects for C++, libtool, Qt, NodeJS, PHP, Shell-Scripts, etc.
Extends autotools, by building packages for Debian and RPM, specifying generic library dependencies, creating desktop applications with icons, etc.
https://mrw.sh/development/bootstrap-build-environment
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.4 KiB
67 lines
1.4 KiB
Summary: @DESCRIPTION@ |
|
Name: @PACKAGE_NAME@ |
|
Version: @VERSION@ |
|
Release: @BUILD_NUMBER@%{?dist} |
|
License: LGPL |
|
Group: Applications/... |
|
Source0: %{name}-%{version}.tar.gz |
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|
BuildRequires: gnupg, subversion, make, automake, autoconf, rpm-build, doxygen, java-openjdk |
|
%if 0%{?fedora} != 20 |
|
BuildRequires: graphviz |
|
%endif |
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} || 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} || 0%{?mageia} |
|
BuildRequires: which, pkgconfig |
|
%if 0%{?rhel} > 6 || 0%{?rhl} > 6 || 0%{?centos} > 6 || 0%{?fedora} || 0%{?mageia} |
|
BuildRequires: rpm-sign |
|
%endif |
|
%if 0%{?mageia} |
|
BuildRequires: gnupg, lsb-release |
|
%else |
|
BuildRequires: gpg, redhat-lsb |
|
%endif |
|
%if ! ( 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} ) |
|
BuildRequires: mscgen |
|
|
|
%else |
|
|
|
%endif |
|
%else%if 0%{?suse_version} || 0%{?sles_version} |
|
BuildRequires: pkg-config, lsb-release |
|
%if 0%{?suse_version} < 1200 || 0%{?sles_version} < 1200 |
|
|
|
%else |
|
|
|
%endif |
|
%endif%endif |
|
|
|
%description |
|
@README@ |
|
|
|
%global debug_package %{nil} |
|
%prep |
|
%setup -q |
|
./configure --prefix=/usr \ |
|
--sysconfdir=/etc \ |
|
--docdir=/usr/share/doc/packages/@PACKAGE_NAME@ \ |
|
--libdir=/usr/%_lib |
|
|
|
%build |
|
make |
|
|
|
%install |
|
DESTDIR=$RPM_BUILD_ROOT make install |
|
|
|
%clean |
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
%files |
|
%defattr(-,root,root,-) |
|
/usr/share/@PACKAGE_NAME@/* |
|
%doc |
|
/usr/share/doc/packages/@PACKAGE_NAME@/* |
|
|
|
|
|
|
|
%changelog |
|
|
|
|