Пакет liquibase: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-build-java # END SourceDeps(oneline) %filter_from_requires /^java-headless/d BuildRequires: /proc BuildRequires: jpackage-generic-compat # fedora bcond_with macro %define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} %define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} # redefine altlinux specific with and without %define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} %define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} # Provide an option to build the Maven plugin. As far as I can tell, RPM versions # of Maven plugins are only really useful as BuildRequires for other RPMs and it's # unlikely that an RPM would need to run Liquibase during its build process. #def_with maven_plugin %bcond_with maven_plugin Name: liquibase Summary: Database Refactoring Tool Version: 3.4.1 Release: alt1_1jpp8 License: ASL 2.0 Group: Databases # Liquibase does not distribute source releases. To generate: # git clone https://github.com/liquibase/liquibase.git # cd liquibase/ # git archive --format=tar.gz --prefix=liquibase-3.4.1/ liquibase-parent-3.4.1 > liquibase-3.4.1.tar.gz Source0: %{name}-%{version}.tar.gz BuildRequires: maven-local BuildRequires: maven-local BuildRequires: servlet BuildRequires: snakeyaml >= 0:1.13 BuildRequires: mvn(org.springframework:spring-context) BuildRequires: mvn(org.springframework:spring-beans) BuildRequires: mvn(org.springframework:spring-core) BuildRequires: mvn(org.jboss.weld.se:weld-se) BuildRequires: mvn(org.apache.commons:commons-cli) BuildRequires: mvn(org.apache.velocity:velocity) BuildRequires: mvn(org.eclipse.jetty:jetty-servlet) BuildRequires: mvn(javax.enterprise:cdi-api) Requires: maven-local Requires: servlet Requires: snakeyaml >= 0:1.13 Requires: mvn(org.springframework:spring-context) Requires: mvn(org.springframework:spring-beans) Requires: mvn(org.springframework:spring-core) Requires: mvn(org.jboss.weld.se:weld-se) Requires: mvn(org.apache.commons:commons-cli) Requires: mvn(org.apache.velocity:velocity) Requires: mvn(org.eclipse.jetty:jetty-servlet) Requires: mvn(javax.enterprise:cdi-api) BuildArch: noarch Url: http://liquibase.org/ Source44: import.info %description LiquiBase is an open source (Apache 2.0 License), database-independent library for tracking, managing and applying database changes. It is built on a simple premise: All database changes are stored in a human readable but tracked in source control. %package javadoc Group: Development/Java Summary: API documentation for %{name} BuildArch: noarch %description javadoc This package contains %{summary}. %if %{with maven_plugin} %package maven-plugin Group: Development/Java Summary: Maven plugin for %{name} BuildRequires: mvn(org.apache.maven:maven-project) BuildRequires: mvn(org.apache.maven:maven-core) Requires: %{name} = %{version} Requires: maven %description maven-plugin %{summary}. %endif %prep %setup -q %pom_disable_module liquibase-osgi %pom_disable_module liquibase-integration-tests %pom_disable_module liquibase-debian %pom_disable_module liquibase-rpm %if %{without maven_plugin} %pom_disable_module liquibase-maven-plugin %endif %pom_remove_dep org.springframework:spring %{name}-core %pom_add_dep org.springframework:spring-core %{name}-core %pom_add_dep org.springframework:spring-beans %{name}-core %pom_add_dep org.springframework:spring-context %{name}-core # Disable filtering of bundled JS, fonts, etc. which cause # maven-filtering to fail with IOException (see MSHARED-325 and # BZ 1077375). %pom_add_plugin :maven-resources-plugin %{name}-core " <configuration> <nonFilteredFileExtensions> <nonFilteredFileExtension>js</nonFilteredFileExtension> <nonFilteredFileExtension>eot</nonFilteredFileExtension> <nonFilteredFileExtension>svg</nonFilteredFileExtension> <nonFilteredFileExtension>ttf</nonFilteredFileExtension> <nonFilteredFileExtension>woff</nonFilteredFileExtension> <nonFilteredFileExtension>xsd</nonFilteredFileExtension> <nonFilteredFileExtension>vm</nonFilteredFileExtension> <nonFilteredFileExtension>sh</nonFilteredFileExtension> </nonFilteredFileExtensions> </configuration>" # Symlink liquibase/liquibase-core.jar to liquibase.jar %mvn_file :%{name}-core %{name}/%{name}-core %{name} # Remove all test dependencies. We aren't running tests with this build. %pom_xpath_remove "//pom:dependency[pom:scope='test']" %{name}-core %pom_remove_plugin org.codehaus.gmaven:gmaven-plugin %{name}-core %if %{with maven_plugin} # Build maven plugin %mvn_package ":liquibase-maven-plugin" %{name}-maven-plugin %pom_add_dep org.apache.maven:maven-core %{name}-maven-plugin %endif %build %mvn_build -f %install %mvn_install %jpackage_script liquibase.integration.commandline.Main "" "" %{name} %{name} true mkdir -p $RPM_BUILD_ROOT`dirname /etc/java/%{name}.conf` touch $RPM_BUILD_ROOT/etc/java/%{name}.conf %files -f .mfiles %doc changelog.txt LICENSE.txt %dir %{_javadir}/%{name} %{_bindir}/%{name} %config(noreplace,missingok) /etc/java/%{name}.conf %if %{with maven_plugin} %files maven-plugin -f .mfiles-%{name}-maven-plugin %endif %files javadoc -f .mfiles-javadoc %doc LICENSE.txt %changelog * Mon Feb 08 2016 Igor Vlasenko <viy@altlinux.ru> 3.4.1-alt1_1jpp8 - new version * Sat Jul 19 2014 Igor Vlasenko <viy@altlinux.ru> 3.0.7-alt1_4jpp7 - update * Sat Jul 19 2014 Igor Vlasenko <viy@altlinux.ru> 2.0.5-alt1_2jpp7 - new version * Mon Sep 17 2012 Igor Vlasenko <viy@altlinux.ru> 2.0.3-alt1_8jpp7 - new version |