Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0
perl-App-Dochazka-REST
perl-App-Dochazka-REST.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-App-Dochazka-REST.spec of Package perl-App-Dochazka-REST
# # spec file for package perl-App-Dochazka-REST # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-App-Dochazka-REST Version: 0.551 Release: 0 %define cpan_name App-Dochazka-REST Summary: Dochazka REST server License: BSD-3-Clause Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/App-Dochazka-REST/ Source0: App-Dochazka-REST-0.551.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(App::CELL) >= 0.215 BuildRequires: perl(App::Dochazka::Common) >= 0.205 BuildRequires: perl(Authen::Passphrase::SaltedDigest) >= 0.008 BuildRequires: perl(DBD::Pg) BuildRequires: perl(DBI) BuildRequires: perl(DBIx::Connector) >= 0.47 BuildRequires: perl(Date::Calc) BuildRequires: perl(Date::Holidays::CZ) >= 0.12 BuildRequires: perl(File::ShareDir) >= 1 BuildRequires: perl(File::ShareDir::Install) >= 0.11 BuildRequires: perl(File::Slurp) BuildRequires: perl(HTTP::Request) BuildRequires: perl(JSON) BuildRequires: perl(Mason) BuildRequires: perl(Module::Build) BuildRequires: perl(Params::Validate) >= 1.06 BuildRequires: perl(Path::Router) >= 0.12 BuildRequires: perl(Plack::Middleware::Session) BuildRequires: perl(Plack::Middleware::StackTrace) BuildRequires: perl(Plack::Runner) BuildRequires: perl(Plack::Test) BuildRequires: perl(Pod::Simple::HTML) BuildRequires: perl(Test::Deep::NoTest) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::JSON) BuildRequires: perl(Test::Warnings) BuildRequires: perl(Try::Tiny) BuildRequires: perl(Web::MREST) >= 0.287 BuildRequires: perl(Web::MREST::CLI) >= 0.276 BuildRequires: perl(Web::Machine) >= 0.15 Requires: perl(App::CELL) >= 0.215 Requires: perl(App::Dochazka::Common) >= 0.207 Requires: perl(Authen::Passphrase::SaltedDigest) >= 0.008 Requires: perl(DBD::Pg) Requires: perl(DBI) Requires: perl(DBIx::Connector) >= 0.47 Requires: perl(Date::Calc) Requires: perl(Date::Holidays::CZ) >= 0.12 Requires: perl(File::ShareDir) >= 1 Requires: perl(JSON) Requires: perl(Mason) Requires: perl(Params::Validate) >= 1.06 Requires: perl(Path::Router) >= 0.12 Requires: perl(Plack::Middleware::Session) Requires: perl(Plack::Middleware::StackTrace) Requires: perl(Plack::Runner) Requires: perl(Pod::Simple::HTML) Requires: perl(Test::Deep::NoTest) Requires: perl(Try::Tiny) Requires: perl(Web::MREST) >= 0.287 Requires: perl(Web::MREST::CLI) >= 0.276 Requires: perl(Web::Machine) >= 0.15 %{perl_requires} # MANUAL BEGIN BuildRequires: systemd BuildRequires: perl(Starman) Requires: perl(Starman) Requires(pre): /usr/sbin/groupadd Requires(pre): /usr/sbin/useradd %{?systemd_requires} %pre getent group dochazka-rest >/dev/null || groupadd -r dochazka-rest getent passwd dochazka-rest >/dev/null || useradd -r -g dochazka-rest -d %{_localstatedir}/lib/dochazka-rest -s /sbin/nologin -c "user for dochazka REST" dochazka-rest %service_add_pre dochazka-rest.service %preun %service_del_preun dochazka-rest.service %postun %service_del_postun dochazka-rest.service %post %service_add_post dochazka-rest.service # MANUAL END %description This distribution, the App::Dochazka::REST manpage, including all the modules in 'lib/', the scripts in 'bin/', and the configuration files in 'config/', constitutes the REST server (API) component of Dochazka, the open-source Attendance/Time Tracking (ATT) system. Dochazka as a whole aims to be a convenient, open-source ATT solution. %prep %setup -q -n %{cpan_name}-%{version} find . -type f -print0 | xargs -0 chmod 644 %build %{__perl} Build.PL installdirs=vendor ./Build build flags=%{?_smp_mflags} %check ./Build test %install ./Build install destdir=%{buildroot} create_packlist=0 # MANUAL BEGIN install -dm0755 %{buildroot}%{_sysconfdir}/dochazka-rest install -m0640 ext/REST_SiteConfig.pm.example %{buildroot}%{_sysconfdir}/dochazka-rest/REST_SiteConfig.pm install -m0640 ext/REST_SiteConfig.pm.example %{buildroot}%{_sysconfdir}/dochazka-rest/REST_SiteConfig.pm.example install -dm0755 %{buildroot}%{_localstatedir}/lib/dochazka-rest install -dm0755 %{buildroot}%{_localstatedir}/log/dochazka mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_unitdir} ln -sf service %{buildroot}%{_sbindir}/rcdochazka-rest install -m0644 ext/systemd/dochazka-rest.service %{buildroot}%{_unitdir}/dochazka-rest.service echo "%dir %{_sysconfdir}/dochazka-rest" >> %{name}.files echo "%config(noreplace) %attr(0640,dochazka-rest,dochazka-rest) %{_sysconfdir}/dochazka-rest/REST_SiteConfig.pm" >> %{name}.files echo "%config %attr(0640,dochazka-rest,dochazka-rest) %{_sysconfdir}/dochazka-rest/REST_SiteConfig.pm.example" >> %{name}.files echo "%attr(0750,dochazka-rest,dochazka-rest) %dir %{_localstatedir}/lib/dochazka-rest" >> %{name}.files echo "%attr(0750,dochazka-rest,dochazka-rest) %dir %{_localstatedir}/log/dochazka" >> %{name}.files echo "%{_sbindir}/rcdochazka-rest" >> %{name}.files echo "%{_unitdir}/dochazka-rest.service" >> %{name}.files # MANUAL END %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes config ext LICENSE README.rst run-tests.sh version.plx WISHLIST %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor