[Bug 2013814] Review Request: libxo - A Library for Generating Text, XML, JSON, and HTML Output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2013814



--- Comment #16 from kchim@xxxxxxxxxx ---
I tried to use %autosetup but I kept running into this error:


=====
setting SOURCE_DATE_EPOCH=1628640000
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8v9BmL
+ umask 022
+ cd /home/kchim/rpmbuild/BUILD
+ cd /home/kchim/rpmbuild/BUILD
+ rm -rf libxo-1.6.0
+ /usr/bin/gzip -dc /home/kchim/rpmbuild/SOURCES/libxo-1.6.0.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libxo-1.6.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /home/kchim/rpmbuild/SOURCES/libxo-1.6.0-sysctl.patch
+ /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f
The text leading up to this was:
--------------------------
|diff -up libxo-1.6.0/libxo/xo_syslog.c.orig libxo-1.6.0/libxo/xo_syslog.c
|--- libxo-1.6.0/libxo/xo_syslog.c.orig 2021-10-08 15:38:30.662205414 +0200
|+++ libxo-1.6.0/libxo/xo_syslog.c      2021-10-08 15:39:05.869501902 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
error: Bad exit status from /var/tmp/rpm-tmp.8v9BmL (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.8v9BmL (%prep)
=====







Here is my update spec file:

=====
Name:           libxo
Version:        1.6.0
Release:        1%{?dist}
Summary:        A Library for Generating Text, XML, JSON, and HTML Output


License:        BSD
URL:            https://github.com/Juniper/libxo
Source0:       
https://github.com/Juniper/libxo/releases/download/%{version}/libxo-%{version}.tar.gz

# Remove include line for header file not present in glibc
Patch0:         libxo-1.6.0-sysctl.patch

BuildRequires:  make
BuildRequires:  gcc

%description
The libxo library allows an application to generate text, XML, JSON, and HTML 
output using a common set of function calls. The application decides at run 
time which output style should be produced. The application calls a function
"xo_emit" to product output that is described in a format string.
A "field descriptor" tells libxo what the field is and what it means.


%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%autosetup

%build
%configure
make %{?_smp_mflags}


%install
#remove .la files
%make_install
find %{buildroot} -type f -name "*.la" | xargs rm -f
rm -f %{buildroot}%{_docdir}/libxo/Copyright

%{?ldconfig_scriptlets}


%files
%license Copyright
%doc README.md INSTALL.md
%{_libdir}/libxo.so.0
%{_libdir}/libxo.so.0.0.0
%{_bindir}/libxo-config
%{_bindir}/xo
%{_bindir}/xohtml
%{_bindir}/xolint
%{_bindir}/xopo
%dir %{_libdir}/libxo
%dir %{_libdir}/libxo/encoder
%{_libdir}/libxo/encoder/*.enc
%{_libdir}/libxo/encoder/libenc*.so.0
%{_libdir}/libxo/encoder/libenc*.so.0.0.0
%{_datadir}/libxo
%{_mandir}/man1/*.1.gz
%{_mandir}/man5/*.5.gz
%{_mandir}/man7/*.7.gz

%files devel
%{_includedir}/*
%{_libdir}/libxo.so
%{_libdir}/libxo.so.0
%{_libdir}/libxo.so.0.0.0
%{_bindir}/libxo-config
%{_libdir}/*.a
%{_mandir}/man3/*.3.gz
%{_libdir}/pkgconfig/libxo.pc
%{_libdir}/libxo/encoder/*.a
%{_libdir}/libxo/encoder/libenc*.so
%{_libdir}/libxo/encoder/libenc*.so.0
%{_libdir}/libxo/encoder/libenc*.so.0.0.0

%changelog
* Wed Aug 11 2021 Kanitha Chim <kchim@xxxxxxxxxx> - 1.6.0-1
- Initial package
====


Everything else works except for when I changed to use %autosetpu


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2013814
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux