Skip to content

Commit

Permalink
composer-1.0.0-0.9.20150820gitf1aa655
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Aug 23, 2015
1 parent 5383604 commit 30deb8f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
12 changes: 12 additions & 0 deletions composer/composer-rpm.patch
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ diff -up ./src/Composer/Json/JsonFile.php.rpm ./src/Composer/Json/JsonFile.php
$schemaData = json_decode(file_get_contents($schemaFile));

if ($schema === self::LAX_SCHEMA) {
diff -up ./src/Composer/Autoload/AutoloadGenerator.php.rpm ./src/Composer/Autoload/AutoloadGenerator.php
--- ./src/Composer/Autoload/AutoloadGenerator.php.rpm 2015-08-23 08:55:33.537606407 +0200
+++ ./src/Composer/Autoload/AutoloadGenerator.php 2015-08-23 08:56:17.341809277 +0200
@@ -268,7 +268,7 @@ EOF;
file_put_contents($targetDir.'/autoload_real.php', $this->getAutoloadRealFile(true, (bool) $includePathFileContents, $targetDirLoader, (bool) $includeFilesFileContents, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader, $classMapAuthoritative));

$this->safeCopy(__DIR__.'/ClassLoader.php', $targetDir.'/ClassLoader.php');
- $this->safeCopy(__DIR__.'/../../../LICENSE', $targetDir.'/LICENSE');
+ $this->safeCopy((getenv('BUILDROOT')?:'') . '/usr/share/composer/LICENSE', $targetDir.'/LICENSE');

$this->eventDispatcher->dispatchScript(ScriptEvents::POST_AUTOLOAD_DUMP, $this->devMode, array(), array(
'optimize' => (bool) $scanPsr0Packages,
17 changes: 12 additions & 5 deletions composer/composer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
#
# Please, preserve the changelog entries
#
%global gh_commit c83650f299cfff1049cd61ea72ee5345bd4f92d3
%global gh_commit f1aa655e6113e0efa979b8b09d7951a762eaa04c
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_branch 1.0-dev
%global gh_date 20150804
%global gh_date 20150820
%global gh_owner composer
%global gh_project composer
%global with_tests %{?_without_tests:0}%{!?_without_tests:1}

Name: composer
Version: 1.0.0
Release: 0.8.%{gh_date}git%{gh_short}%{?dist}
Release: 0.9.%{gh_date}git%{gh_short}%{?dist}
Summary: Dependency Manager for PHP

Group: Development/Libraries
Expand Down Expand Up @@ -138,8 +138,11 @@ mkdir -p %{buildroot}%{_datadir}/php
cp -pr src/* %{buildroot}%{_datadir}/php

: Resources
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -pr res %{buildroot}%{_datadir}/%{name}/res
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -pr res %{buildroot}%{_datadir}/%{name}/res
cp -p LICENSE %{buildroot}%{_datadir}/%{name}/LICENSE

ln -sf %{_datadir}/%{name}/LICENSE LICENSE

: Command
install -Dpm 755 bin/%{name} %{buildroot}%{_bindir}/%{name}
Expand Down Expand Up @@ -171,6 +174,10 @@ rm -rf %{buildroot}


%changelog
* Sun Aug 23 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-0.9.201508gitf1aa655
- new snapshot
- add LICENSE in application data, as used by the code

* Fri Aug 7 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-0.8.20150804gitc83650f
- new snapshot

Expand Down

0 comments on commit 30deb8f

Please sign in to comment.