Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
[packaging] move to tar_git based packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Islam Amer committed Sep 2, 2013
1 parent 7eb9a57 commit 15e25f9
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 0 deletions.
18 changes: 18 additions & 0 deletions rpm/repomd-pattern-builder.changes
@@ -0,0 +1,18 @@
* Mon Dec 03 2012 Marko Saukko <marko.saukko@jollamobile.com> - 0.3
- Added diffutils dependency to tests package.

* Wed Nov 28 2012 Marko Saukko <marko.saukko@jollamobile.com> - 0.3
- Use lxml buildin prettyprint
- Handle multiple documents in a yaml file
- Added tests package
- Added support for 'Conflicts', 'Requires', 'Recommends', 'Suggests'
and 'Provides'
- Added support to enter version and release from cmdline
- Renamed --groupxml to --patternsxml
- Make --patternxml the default behaviour

* Tue Jul 31 2012 Marko Saukko <marko.saukko@jollamobile.com> - 0.2.1
- Add epoch and rel to version element to fix compatibility with OBS.

* Mon Jan 02 2012 Marko Saukko <marko.saukko@cybercom.com> - 0.2
- Initial packaging for the repomd-pattern-builder.
75 changes: 75 additions & 0 deletions rpm/repomd-pattern-builder.spec
@@ -0,0 +1,75 @@
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.25
#

Name: repomd-pattern-builder

# >> macros
# << macros

Summary: Scripts to build patterns for the rpm repository.
Version: 0.3
Release: 1
Group: Software Management/Package Manager
License: GPLv2
URL: https://gitorious.org/meego-developer-edition-for-n900/repomd-pattern-builder
Source0: %{name}-%{version}.tar.xz
Source100: repomd-pattern-builder.yaml
Requires: python
Requires: python-yaml
Requires: python-lxml
Requires: /usr/bin/xmllint

%description
Script that converts .yaml structures to suitable rpm patterns and package groups.


%package tests
Summary: tests for %{name}
Group: QA/Tests
Requires: %{name} = %{version}-%{release}
Requires: diffutils

%description tests
%{summary}.



%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

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



# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
%make_install
# << install pre

# >> install post
# << install post


%files
%defattr(-,root,root,-)
# >> files
%{_bindir}/%{name}.py
# << files

%files tests
%defattr(-,root,root,-)
# >> files tests
/opt/tests/repomd-pattern-builder/tests.xml
/opt/tests/repomd-pattern-builder/data/*
# << files tests
26 changes: 26 additions & 0 deletions rpm/repomd-pattern-builder.yaml
@@ -0,0 +1,26 @@
Name: repomd-pattern-builder
Summary: Scripts to build patterns for the rpm repository.
Description: |
Script that converts .yaml structures to suitable rpm patterns and package groups.
Version: 0.3
Release: 1
Group: Software Management/Package Manager
License: GPLv2
Sources:
- "%{name}-%{version}.tar.xz"
URL: https://gitorious.org/meego-developer-edition-for-n900/repomd-pattern-builder
Configure: none
Builder: none
Requires:
- python
- python-yaml
- python-lxml
- /usr/bin/xmllint
SubPackages:
- Name: tests
Summary: tests for %{name}
Description: |
%{summary}.
Group: QA/Tests
Requires:
- diffutils

0 comments on commit 15e25f9

Please sign in to comment.