From 2b84fa512895a69d9a7f85f3b9fc1297bfb53556 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 13 Oct 2023 14:05:18 +0200 Subject: add spec file for test rpm --- tests/003-rpminfo.phpt | 2 +- tests/005-rpminfo-full.phpt | 2 +- tests/014-stream.phpt | 10 +++++----- tests/bidon.rpm | Bin 6972 -> 7492 bytes tests/bidon.spec | 37 +++++++++++++++++++++++++++++++++++++ 5 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 tests/bidon.spec diff --git a/tests/003-rpminfo.phpt b/tests/003-rpminfo.phpt index beb7b47..c1c5d2a 100644 --- a/tests/003-rpminfo.phpt +++ b/tests/003-rpminfo.phpt @@ -14,7 +14,7 @@ array(5) { ["Version"]=> string(1) "1" ["Release"]=> - string(11) "1.fc27.remi" + string(11) "2.fc37.remi" ["Summary"]=> string(5) "Bidon" ["Arch"]=> diff --git a/tests/005-rpminfo-full.phpt b/tests/005-rpminfo-full.phpt index 38f5bab..90080da 100644 --- a/tests/005-rpminfo-full.phpt +++ b/tests/005-rpminfo-full.phpt @@ -26,7 +26,7 @@ string(5) "bidon" string(15) "A dummy package" array(1) { [0]=> - string(8) "- create" + string(20) "- add some hardlinks" } bool(false) array(1) { diff --git a/tests/014-stream.phpt b/tests/014-stream.phpt index d10b421..46d6b66 100644 --- a/tests/014-stream.phpt +++ b/tests/014-stream.phpt @@ -47,7 +47,7 @@ string(2) "OK" bool(true) bool(true) bool(false) -int(29) +int(30) int(33188) string(2) "OK" bool(true) @@ -55,14 +55,14 @@ bool(false) bool(true) + file resource(%d) of type (stream) -int(29) +int(30) int(33188) -string(10) "Mon Feb 12" +string(10) "Fri Oct 13" bool(false) -string(17) "13:27:47 CET 2018" +string(18) "12:24:27 CEST 2023" bool(true) + stream -string(28) "Mon Feb 12 13:27:47 CET 2018" +string(29) "Fri Oct 13 12:24:27 CEST 2023" Warning: file_get_contents(%s/bidon.rpm#/usr/share/doc/bidon/TODO): Failed to open stream: operation failed in %s on line %d bool(false) diff --git a/tests/bidon.rpm b/tests/bidon.rpm index 6cbfa04..75ed242 100644 Binary files a/tests/bidon.rpm and b/tests/bidon.rpm differ diff --git a/tests/bidon.spec b/tests/bidon.spec new file mode 100644 index 0000000..3f76b64 --- /dev/null +++ b/tests/bidon.spec @@ -0,0 +1,37 @@ +%{!?ver: %global ver 1} + +Name: bidon +Version: %{ver} +Release: 2%{?dist} +Summary: Bidon +License: Public Domain +URL: http://blog.famillecollet.com/ + +Obsoletes: fooobs < 2 + + +%description +A dummy package + +%prep +date >README +echo "content" >conf + +%build +: nothing to build + +%install +install -Dpm644 conf %{buildroot}%{_sysconfdir}/foo.conf +ln %{buildroot}%{_sysconfdir}/foo.conf %{buildroot}%{_sysconfdir}/bar.conf + +%files +%doc README +%config(noreplace) %{_sysconfdir}/*.conf + + +%changelog +* Fri Oct 13 2023 Remi Collet - 1-2 +- add some hardlinks + +* Wed Dec 24 2014 Remi Collet - 1-1 +- create -- cgit