mock build
This commit is contained in:
49
locallibs/ruby-rpm-ffi/test/data/a.spec
Normal file
49
locallibs/ruby-rpm-ffi/test/data/a.spec
Normal file
@@ -0,0 +1,49 @@
|
||||
Name: a
|
||||
Version: 1.0
|
||||
Release: 0
|
||||
License: GPLv2
|
||||
Summary: Minimal package example
|
||||
Url: http://www.a.com
|
||||
Group: Development
|
||||
Source: a-1.0.tar.gz
|
||||
BuildRequires: c d
|
||||
Provides: something
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Description
|
||||
|
||||
%package devel
|
||||
Summary: Development part
|
||||
%description devel
|
||||
Development headers
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%post
|
||||
|
||||
%postun
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc ChangeLog README COPYING
|
||||
%{_datadir}/a/README
|
||||
|
||||
%files devel
|
||||
%{_includedir}/a.h
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
|
||||
BIN
locallibs/ruby-rpm-ffi/test/data/simple-1.0-0.i586.rpm
Normal file
BIN
locallibs/ruby-rpm-ffi/test/data/simple-1.0-0.i586.rpm
Normal file
Binary file not shown.
38
locallibs/ruby-rpm-ffi/test/data/simple.spec
Normal file
38
locallibs/ruby-rpm-ffi/test/data/simple.spec
Normal file
@@ -0,0 +1,38 @@
|
||||
Name: simple
|
||||
Version: 1.0
|
||||
Release: 0
|
||||
License: GPL
|
||||
Summary: Simple dummy package
|
||||
Summary(es): Paquete simple de muestra
|
||||
Url: http://www.dummmy.com
|
||||
Group: Development
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Dummy package
|
||||
|
||||
%description -l es
|
||||
Paquete de muestra
|
||||
|
||||
%prep
|
||||
|
||||
%build
|
||||
mkdir -p %{buildroot}%{_datadir}/%{name}
|
||||
echo "Hello" > %{buildroot}%{_datadir}/%{name}/README
|
||||
echo "Hola" > %{buildroot}%{_datadir}/%{name}/README.es
|
||||
|
||||
%install
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/%{name}/README
|
||||
%{_datadir}/%{name}/README.es
|
||||
|
||||
%changelog
|
||||
* Wed Nov 06 2011 Duncan Mac-Vicar P. <dmacvicar@suse.de>
|
||||
- Fix something
|
||||
* Tue Nov 05 2011 Duncan Mac-Vicar P. <dmacvicar@suse.de>
|
||||
- Fix something else
|
||||
BIN
locallibs/ruby-rpm-ffi/test/data/simple_with_deps-1.0-0.i586.rpm
Normal file
BIN
locallibs/ruby-rpm-ffi/test/data/simple_with_deps-1.0-0.i586.rpm
Normal file
Binary file not shown.
41
locallibs/ruby-rpm-ffi/test/data/simple_with_deps.spec
Normal file
41
locallibs/ruby-rpm-ffi/test/data/simple_with_deps.spec
Normal file
@@ -0,0 +1,41 @@
|
||||
Name: simple_with_deps
|
||||
Version: 1.0
|
||||
Release: 0
|
||||
License: GPL
|
||||
Summary: Simple dummy package
|
||||
Url: http://www.dummmy.com
|
||||
Group: Development
|
||||
Requires: a
|
||||
Requires: b > 1.0
|
||||
Conflicts: c d
|
||||
Obsoletes: f
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Dummy package
|
||||
|
||||
%description -l es
|
||||
Paquete de muestra
|
||||
|
||||
%prep
|
||||
|
||||
%build
|
||||
mkdir -p %{buildroot}%{_datadir}/%{name}
|
||||
echo "Hello" > %{buildroot}%{_datadir}/%{name}/README
|
||||
echo "Hola" > %{buildroot}%{_datadir}/%{name}/README.es
|
||||
|
||||
%install
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/%{name}/README
|
||||
%{_datadir}/%{name}/README.es
|
||||
|
||||
%changelog
|
||||
* Wed Nov 06 2011 Duncan Mac-Vicar P. <dmacvicar@suse.de>
|
||||
- Fix something
|
||||
* Tue Nov 05 2011 Duncan Mac-Vicar P. <dmacvicar@suse.de>
|
||||
- Fix something else
|
||||
Reference in New Issue
Block a user