Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lrupp
kimai
kimai2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kimai2.spec of Package kimai
# # spec file for package kimai2 # # Copyright (c) 2021 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: kimai2 Version: 1.19.3 Release: 0 Summary: Free Time-Tracking App License: MIT Group: Productivity/Networking/Web/Utilities Url: https://www.kimai.org/ Source: %{name}-%{version}.tar.gz # # zypper install php-composer # cd kimai2 # composer install --no-dev --no-scripts --ignore-platform-reqs --optimize-autoloader # => check "scripts" section in composer.json # export version=%%{version}; tar -cvJf ../kimai2-${version}-vendor.tar.xz vendor/ # Source1: %{name}-%{version}-vendor.tar.xz Source2: kimai2-nginx.conf Source3: kimai2-php-fpm.conf Source10: %{name}-rpmlintrc BuildRequires: fdupes BuildRequires: nginx BuildRequires: php-fpm Recommends: %{name}-nginx >= %{version} Recommends: %{name}-php-fpm >= %{version} Requires: php-ctype Requires: php-dom Requires: php-fileinfo Requires: php-gd Requires: php-iconv Requires: php-intl Requires: php-json Requires: php-ldap Requires: php-mbstring Requires: php-mysql Requires: php-openssl Requires: php-pdo Requires: php-posix Requires: php-sqlite Requires: php-tokenizer Requires: php-xsl Requires: php-xmlreader Requires: php-xmlwriter Requires: php-zip Requires: php-zlib BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define ap_usr %{name} %define ap_grp %{name} %define installdir %{_datadir}/php/%{name} %define php_fpm_d %{_sysconfdir}/php7/fpm/php-fpm.d/ %define ng_vhost_d %{_sysconfdir}/nginx/vhosts.d/ %description With Kimai, the boring process of feeding Excel spreadsheets with your working hours is not only simplified, it also offers dozens of other exciting features that you don't even know you're missing so far! %package php-fpm Group: Productivity/Networking/Web/Utilities %requires_eq php-fpm # Requires: {name}-apparmor Requires: %{name} = %{version} Summary: PHP FPM configuration for %{name} %description php-fpm This package holds the php-fpm configuration for %{name}. %files php-fpm %config(noreplace) %{php_fpm_d}/%{name}.conf %package nginx Group: Productivity/Networking/Web/Utilities Requires: %{name}-php-fpm = %{version} Requires: nginx Summary: NGINX configuration for %{name} %description nginx This package holds the nginx configuration for %{name}. %files nginx %config(noreplace) %{ng_vhost_d}/%{name}.conf %prep %setup -q -a1 # remove unwanted files for file in \ .doctor-rst.yaml \ .doctrine-project.json \ .editorconfig \ .eslintrc \ .eslintrc.json \ .github_changelog_generator \ .gitattributes \ .gitmodules \ .gitkeep \ .htaccess \ .jshintrc \ .laminas-ci.json \ .npmignore \ .php_cs \ .php_cs.dist \ .php-cs-fixer.dist.php \ .php-cs-fixer.php \ .phpstorm.meta.php \ .phpcs.xml.dist \ .pullapprove.yml \ .rake_t_cache \ .sami.php \ .scrutinizer.yml \ .travis.yml \ .travis.sh \ .travis.install.sh \ .requirements.txt \ .stylelintrc \ .styleci.yml \ .symfony.bundle.yaml \ .travis_shell_after_success.sh \ ; do find . -type f -name $file -delete done find . -type f "(" -name "*.c" -o -name "*.h" -o -name "*.js.orig" -o -name "yii.bat" -o -name ".gitignore" -o -name ".coveralls.yml" -o -name ".prettierignore" -o -name ".eslintignore" -o -name ".tm_properties" -o -name ".zuul.yml" -o -name ".nycrc" -o -name ".codoopts" -o -name ".jscsrc" -o -name ".jshintignore" ")" -delete for dir in .docker .github .idea .travis; do find . -type d -name "$dir" -prune -exec rm -rf {} + || : done rm -rf vendor/doctrine/dbal/bin/ rm -rf vendor/doctrine/migrations/bin rm -rf vendor/doctrine/orm/bin rm -rf vendor/doctrine/sql-formatter/bin rm vendor/doctrine/migrations/*.sh rm vendor/exsyst/swagger/phpunit # rm vendor/gedmo/doctrine-extensions/example/bin/console rm vendor/league/html-to-markdown/bin/html-to-markdown rm vendor/paragonie/random_compat/build-phar.sh rm vendor/symfony/intl/Resources/bin/compile rm vendor/symfony/var-dumper/Resources/bin/var-dump-server rm vendor/zircote/swagger-php/bin/swagger rm vendor/bin/{doctrine-dbal,var-dump-server,sql-formatter,swagger,doctrine-migrations,html-to-markdown,doctrine} # env-script-interpreter find . -type f -exec sed -i -e 's|\/usr\/bin\/env php|\/usr\/bin\/php|g' {} + find . -type f -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|g' {} + %build # %install install -D -d -m 0755 \ %{buildroot}%{php_fpm_d} \ %{buildroot}%{ng_vhost_d} \ %{buildroot}/%{installdir} install -m 0644 %{SOURCE3} %{buildroot}%{php_fpm_d}/%{name}.conf install -m 0644 %{SOURCE2} %{buildroot}%{ng_vhost_d}/%{name}.conf # copy src from build to buildroot cp -dR * %{buildroot}/%{installdir}/ cp .env.dist %{buildroot}/%{installdir}/ rm %{buildroot}/%{installdir}/*.md rm -rf %{buildroot}/%{installdir}/tests # reduce size, run fdupes %fdupes %{buildroot}/%{installdir} %pre /usr/sbin/groupadd -r %{ap_grp} &>/dev/null || : /usr/sbin/useradd -g %{ap_grp} -s /bin/false -r -c "Kimai user" -d %{installdir} %{ap_usr} &>/dev/null || : %postun nginx %service_del_postun nginx.service %files %defattr(0644,root,root,0755) %doc LICENSE *.md %dir %{_datadir}/php %dir %{installdir} %dir %{installdir}/public %{installdir}/public/build %{installdir}/public/favicon %{installdir}/public/*.png %{installdir}/public/*.php %{installdir}/public/*.xml %{installdir}/public/*.ico %{installdir}/public/*.json %{installdir}/public/*.txt %{installdir}/vendor %{installdir}/bin %{installdir}/config %{installdir}/src %{installdir}/templates %{installdir}/translations %{installdir}/.env.dist %{installdir}/*json %{installdir}/*.js %{installdir}/*.dist %{installdir}/*.lock %{installdir}/*.neon %{installdir}/LICENSE %attr(0755,root,root) %{installdir}/bin/console %defattr(0644,%ap_usr,%ap_grp,0755) %dir %{installdir}/var %{installdir}/var/* %dir %{installdir}/assets %{installdir}/assets/* %{installdir}/public/avatars %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