Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7780bcb1b6
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (48 sloc) 1.838 kb
%define realname yabs
%define revision {{REVISION}}
Name: strikead-%realname
Version: 0.5
Release: 1
License: Proprietary
Vendor: StrikeAd
Packager: Aleksey Morarash <aleksey.morarash@strikead.com>
Group: Development/Languages/Erlang
Source: strikead-%realname.tar.gz
Summary: RPM builder script.
URL: https://github.com/strikead/%realname/tarball/%revision
Requires: sudo zypper createrepo util-linux sed coreutils curl tar gzip bzip2 unzip rpm rpm-build
BuildArch: noarch
%description
Build RPM package in clean chrooted environment.
%prep
%setup -n strikead-%realname-%revision
%build
%install
install --mode=755 --directory \
%buildroot%_sysconfdir/%realname \
%buildroot%_sysconfdir/sudoers.d \
%buildroot%_bindir \
%buildroot%_sbindir
install --mode=644 yabs*.conf repo*.list %buildroot%_sysconfdir/%realname
install --mode=440 http-auth.conf %buildroot%_sysconfdir/%realname
install --mode=755 yabs.sh %buildroot%_bindir/%realname
install --mode=755 yabs-worker.sh %buildroot%_sbindir/%realname-worker
install --mode=440 sudoers %buildroot%_sysconfdir/sudoers.d/%realname
%files
%defattr(-,root,root)
%dir %_sysconfdir/%realname
%config %_sysconfdir/%realname/*
%config %_sysconfdir/sudoers.d/*
%_bindir/*
%_sbindir/*
%post
grep --extended-regexp --quiet '^#includedir\s+/etc/sudoers.d\s*$' /etc/sudoers || \
echo '#includedir /etc/sudoers.d' >> /etc/sudoers
%changelog
* Mon Feb 18 2013 Aleksey Morarash <aleksey.morarash@strikead.com> 0.5-1
- use home:ldan86 repo with libcgal9;
- umount filesystems from chroot after successfull build;
- create random/urandom devices;
- Built for OpenSUSE 12.2.
* Sun Feb 10 2013 Aleksey Morarash <aleksey.morarash@strikead.com> 0.1-1
- Initial package for OpenSUSE.
Jump to Line
Something went wrong with that request. Please try again.