Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions rpm/osc.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.27
#

Name: osc

# >> macros
# << macros

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Summary: OpenSUSE Build Service Commander
Version: 0.146.0
Release: 1
Group: Development/Tools/Other
License: GPL v2 or later
BuildArch: noarch
URL: http://www.gitorious.org/opensuse/osc
Source0: osc-%{version}.tar.bz2
Source100: osc.yaml
Requires: python-urlgrabber
Requires: m2crypto > 0.19
Requires: /usr/bin/less
Requires: /usr/bin/diff3
BuildRequires: python-devel
BuildRequires: python-urlgrabber
BuildRequires: m2crypto

%description
Commandline client for the openSUSE Build Service.

See http://en.opensuse.org/Build_Service/CLI , as well as
http://en.opensuse.org/Build_Service_Tutorial for a general
introduction.


%prep
%setup -q

# >> setup
# << setup

%build
# >> build pre
# << build pre

CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%{__python} setup.py install --root=%{buildroot} -O1

# >> install post
ln -s osc-wrapper.py %{buildroot}/%{_bindir}/osc
mkdir -p %{buildroot}/var/lib/osc-plugins
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
install -m 0755 dist/complete.csh %{buildroot}%{_sysconfdir}/profile.d/osc.csh
install -m 0755 dist/complete.sh %{buildroot}%{_sysconfdir}/profile.d/osc.sh
%if 0%{?suse_version} > 1110
mkdir -p %{buildroot}%{_prefix}/lib/osc
install -m 0755 dist/osc.complete %{buildroot}%{_prefix}/lib/osc/complete
%else
mkdir -p %{buildroot}%{_prefix}/%{_lib}/osc
install -m 0755 dist/osc.complete %{buildroot}%{_prefix}/%{_lib}/osc/complete
%endif


# << install post

%files
%defattr(-,root,root,-)
# >> files
%{_bindir}/osc*
%{python_sitelib}/*
%{_sysconfdir}/profile.d/*
%if 0%{?suse_version} > 1110
%dir %{_prefix}/lib/osc
%{_prefix}/lib/osc/*
%else
%dir %{_prefix}/%{_lib}/osc
%{_prefix}/%{_lib}/osc/*
%endif
%dir /var/lib/osc-plugins
%doc AUTHORS README TODO NEWS
%doc %_mandir/man1/osc.*
# << files
30 changes: 30 additions & 0 deletions rpm/osc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Name: osc
Summary: OpenSUSE Build Service Commander
Version: 0.146.0
Release: 1
Group: Development/Tools/Other
License: GPL v2 or later
URL: http://www.gitorious.org/opensuse/osc
Sources:
- osc-%{version}.tar.bz2
Description: |
Commandline client for the openSUSE Build Service.

See http://en.opensuse.org/Build_Service/CLI , as well as
http://en.opensuse.org/Build_Service_Tutorial for a general
introduction.
Requires:
- python-urlgrabber
- m2crypto > 0.19
- /usr/bin/less
- /usr/bin/diff3
PkgBR:
- python-devel
- python-urlgrabber
- m2crypto
Configure: none
Builder: python
BuildArch: noarch
Recommends:
- build > 2010.11.24
SetupOptions: -q