packaging rpm, suite
This commit is contained in:
parent
0493d41e50
commit
0534f8430e
|
@ -2,7 +2,7 @@
|
|||
# $ yum install git
|
||||
# $ mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
||||
# $ echo '%_topdir %(echo $HOME)/rpmbuild' >> ~/.rpmmacros
|
||||
# $ echo | gzip -c > ~/rpmbuild/SOURCES/polynum-0.0.tar.gz
|
||||
# $ echo | gzip -c > ~/rpmbuild/SOURCES/polynum-0.0.tar.gz # create a first tar.gz (fake)
|
||||
# $ cd ~/dev && git clone git://repos.entrouvert.org/polynum.git
|
||||
# $ ln -s ~/dev/polynum/rpm/centos.spec ~/rpmbuild/SPECS/polynum.spec
|
||||
# $ rpmbuild -ba ~/rpmbuild/SPECS/polynum.spec
|
||||
|
@ -38,6 +38,9 @@
|
|||
%define git_get_ver %(git --git-dir=%{git_gitdir} describe --tags | sed 's/^v\\?\\(.*\\)-\\([0-9]\\+\\)-g.*$/\\1/;s/-//')
|
||||
%define git_get_rel %(git --git-dir=%{git_gitdir} describe --tags | grep '\\-g.\\+$' | sed 's/^v\\?\\(.*\\)-\\([0-9]\\+\\)-g.*$/\\2/')
|
||||
|
||||
# wtf... we don't want .pyo and .pyc files
|
||||
%define __os_install_post echo "NO COMPRESS"
|
||||
|
||||
|
||||
#
|
||||
# real spec starts here
|
||||
|
@ -51,15 +54,16 @@ Version: 0.0
|
|||
Release: 1
|
||||
License: AGPLv3+
|
||||
Group: Applications/Internet
|
||||
|
||||
URL: http://
|
||||
URL: http://dev.entrouvert.org/projects/polynum
|
||||
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
BuildArch: noarch
|
||||
|
||||
# depends
|
||||
Requires: python26
|
||||
Requires: python26-virtualenv
|
||||
Requires: python26-ldap
|
||||
|
||||
%description
|
||||
Polynum (polycopiés numériques) est une application web pour demander
|
||||
|
@ -73,14 +77,23 @@ afin de mettre à disposition en ligne les polycopiés pour les étudiants.
|
|||
%build
|
||||
|
||||
%install
|
||||
make install_rpm
|
||||
%{__rm} -rf %{buildroot}
|
||||
make DESTDIR=%{buildroot} install
|
||||
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/%{name}
|
||||
|
||||
%clean
|
||||
|
||||
%files
|
||||
# set perms and ownerships of packaged files
|
||||
# the - indicates that the current permissions on the files should be used
|
||||
%defattr(-,root,root)
|
||||
%doc help local_settings.py.example gunicorn_config.py.example README
|
||||
#%config(noreplace) %{_sysconfdir}/%{name}/
|
||||
/opt/polynum/*
|
||||
%{_sysconfdir}/%{name}
|
||||
|
||||
#%changelog
|
||||
#* 2012 07 24 Thomas NOEL <tnoel@entrouvert.com> 0.0-1
|
||||
#- create spec file
|
||||
%changelog
|
||||
* Tue Jul 24 2012 Thomas NOEL <tnoel@entrouvert.com> 0.0-1
|
||||
- create spec file
|
||||
|
||||
|
||||
|
|
Reference in New Issue