address review comments

This commit is contained in:
Neil Hanlon 2024-09-12 12:59:03 -04:00 committed by Neil Hanlon
parent 230a701111
commit 24d968384b
Signed by: neil
GPG Key ID: 705BC21EC3C70F34
2 changed files with 30 additions and 36 deletions

23
changelog Normal file
View File

@ -0,0 +1,23 @@
* Tue Aug 20 2024 Neil Hanlon <neil@shrug.pw> - 1.2.2-1
- update to 1.2.2 for re-review
* Mon Jun 07 2010 Balint Cristian <cristian.balint@gmail.com> - 0.8.0-1
- new upstream
* Thu Mar 18 2010 Balint Cristian <rezso@rdsor.ro> - 0.7.0-1
- new upstream
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Mon Jan 05 2009 Balint Cristian <rezso@rdsor.ro> - 0.6.0-3
- initial import
* Thu Sep 25 2008 Balint Cristian <rezso@rdsor.ro> - 0.6.0-2
- shorter summary description
* Thu Sep 25 2008 Balint Cristian <rezso@rdsor.ro> - 0.6.0-1
- initial package for fedora

View File

@ -3,7 +3,7 @@
Name: tinyows Name: tinyows
Version: 1.2.2 Version: 1.2.2
Release: 1%{?dist} Release: %autorelease
Summary: WFS-T and FE implementation server Summary: WFS-T and FE implementation server
License: MIT License: MIT
@ -61,7 +61,7 @@ sed -i -e 's|/usr/tinyows/|%{_datadir}/%{name}/|' src/ows_define.h
# fix DSO lookup # fix DSO lookup
sed -i -e 's|-lpq|-lpq -lm|' Makefile sed -i -e 's|-lpq|-lpq -lm|' Makefile
make %{?_smp_mflags} %make_build
# disable timestamp inside docs # disable timestamp inside docs
sed -i -e 's|HTML_FOOTER|HTML_FOOTER=no_date_footer.html\n\#|g' doc/Doxyfile sed -i -e 's|HTML_FOOTER|HTML_FOOTER=no_date_footer.html\n\#|g' doc/Doxyfile
@ -70,28 +70,22 @@ make doxygen
%install %install
install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_bindir}
cp %{_bindir}/shp2pgsql %{buildroot}%{_bindir}/shp2pgsql
install -p -m 0755 tinyows %{buildroot}%{_bindir}/ install -p -m 0755 tinyows %{buildroot}%{_bindir}/
install -d %{buildroot}%{_datadir}/%{name} install -d %{buildroot}%{_datadir}/%{name}
cp -pR schema %{buildroot}%{_datadir}/%{name}/ cp -pR schema %{buildroot}%{_datadir}/%{name}/
install -d %{buildroot}%{_sysconfdir}/%{name} install -d %{buildroot}%{_sysconfdir}/%{name}
install -p -m 0644 ms4w/apps/tinyows-svn/config.xml %{buildroot}%{_sysconfdir}/%{name} install -p -m 0644 ms4w/apps/tinyows-svn/config.xml %{buildroot}%{_sysconfdir}/%{name}
pushd %{buildroot}%{_datadir}/%{name}/
ln -s ../../../%{_sysconfdir}/%{name}/config.xml config.xml
popd
%check ln -s --relative %{buildroot}%{_sysconfdir}/%{name}/config.xml %{buildroot}%{_datadir}/%{name}/
# NOTE(neil): 2024-08-25 tests require a postgres database running; unable to run in %check # NOTE(neil): 2024-08-25 tests require a postgres database running; unable to run in check
# https://github.com/MapServer/tinyows/blob/f1dc7bc86fc4d69faddd79ed2804d98c11802ba8/.github/workflows/linux.sh#L19-L22 # https://github.com/MapServer/tinyows/blob/f1dc7bc86fc4d69faddd79ed2804d98c11802ba8/.github/workflows/linux.sh#L19-L22
# make check || true %dnl %check
%files %files
%defattr(-,root,root,-) %license LICENSE.md schema/LICENSE
%license LICENSE.md
%doc README.md VERSION.md %doc README.md VERSION.md
%doc doc/doxygen %doc doc/doxygen
%{_bindir}/shp2pgsql
%{_bindir}/%{name} %{_bindir}/%{name}
%dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/config.xml %attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/config.xml
@ -99,27 +93,4 @@ popd
%files doc %files doc
%{_datadir}/%{name} %{_datadir}/%{name}
%changelog %autochangelog
* Tue Aug 20 2024 Neil Hanlon <neil@shrug.pw> - 1.2.2-1
- update to 1.2.2 for re-review
* Mon Jun 07 2010 Balint Cristian <cristian.balint@gmail.com> - 0.8.0-1
- new upstream
* Thu Mar 18 2010 Balint Cristian <rezso@rdsor.ro> - 0.7.0-1
- new upstream
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Mon Jan 05 2009 Balint Cristian <rezso@rdsor.ro> - 0.6.0-3
- initial import
* Thu Sep 25 2008 Balint Cristian <rezso@rdsor.ro> - 0.6.0-2
- shorter summary description
* Thu Sep 25 2008 Balint Cristian <rezso@rdsor.ro> - 0.6.0-1
- initial package for fedora